package org.snail.dept.bean;

import lombok.Data;

import java.util.Objects;

/**
 * 部门下的人员基础信息
 */
@Data
public class DeptUserDO {

    private String userid;
    private Long departmentId;
    private int isDel;

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (!(object instanceof DeptUserDO)) return false;
        DeptUserDO that = (DeptUserDO) object;
        return Objects.equals(userid, that.userid) && Objects.equals(departmentId, that.departmentId);
    }

    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + userid.hashCode();
        result = 31 * result + departmentId.hashCode();
        return result;
    }
}
